#ifndef __TIME2_H
#define __TIME2_H

#include "stm32f10x.h"
#include "Buzz.h"

extern uint8_t _time2;

#define START_TIME2	RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2 , ENABLE);TIM_Cmd(TIM2, ENABLE);_time2=0
#define STOP_TIME2  TIM_Cmd(TIM2, DISABLE);RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2 , DISABLE);BUZZ_OFF()

extern volatile u32 time2;

void TIM2_Inital(void);

#endif	/* TIME2_TEST_H */

/******************* (C) COPYRIGHT 2013 LST *****END OF FILE************/
